#include "FKMessage.h"

#include <QDataStream>

#include "FKLogger.h"

FKMessage::FKMessage(int dummy1, int dummy2):FKSystemObject(){
    Q_UNUSED(dummy1)
    Q_UNUSED(dummy2)
    FK_CBEGIN
    FK_CEND
}

FKMessage::FKMessage(QVariant message):FKSystemObject(),_message(message){
    FK_CBEGIN
    FK_CEND
}

FKMessage::~FKMessage(){
    FK_DBEGIN
    FK_DEND
}

void FKMessage::pack(QDataStream &stream){
    stream<<_message;
}

bool FKMessage::load(QDataStream &stream){
    stream>>_message;
    return true;
}

QVariant FKMessage::message() const{
    return _message;
}
